/*******************************************************************************
 * Copyright (c) 2000, 2010 IBM Corporation and others.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.gef.handles;

import org.eclipse.draw2d.ConnectionLocator;

import org.eclipse.gef.ConnectionEditPart;

/**
 * A handle used at the end of the {@link org.eclipse.draw2d.Connection}. This
 * is treated differently than the start of the Connection.
 *
 * @deprecated use {@link ConnectionEndpointHandle}
 */
public final class ConnectionEndHandle extends ConnectionEndpointHandle {

	/**
	 * Creates a new ConnectionEndHandle, sets its owner to <code>owner</code>, and
	 * sets its locator to a {@link ConnectionLocator}.
	 *
	 * @param owner the ConnectionEditPart owner
	 */
	public ConnectionEndHandle(ConnectionEditPart owner) {
		super(owner, ConnectionLocator.TARGET);
	}

	/**
	 * Creates a new ConnectionEndHandle with its owner set to <code>owner</code>.
	 * If the handle is fixed, it cannot be dragged.
	 *
	 * @param owner the ConnectionEditPart owner
	 * @param fixed if true, handle cannot be dragged
	 */
	public ConnectionEndHandle(ConnectionEditPart owner, boolean fixed) {
		super(owner, fixed, ConnectionLocator.TARGET);
	}

	/**
	 * Creates a new ConnectionEndHandle.
	 */
	public ConnectionEndHandle() {
		super(ConnectionLocator.TARGET);
	}

}
